package com.vinfai.patterns.decorator;

import org.apache.log4j.Logger;

public abstract class Decorator implements Component {
	
	protected Logger logger  = Logger.getLogger(Decorator.class);
	
	/**原始组件*/
	private Component component;
	
	/**通过原始组件构建装饰类*/	 
	public Decorator(Component comp){
		this.component = comp;
	}
	
	
	/**
	 * Getter of the property <tt>component</tt>
	 *
	 * @return Returns the component.
	 * 
	 */
	public Component getComponent()
	{
		return component;
	}
	/**
	 * Setter of the property <tt>component</tt>
	 *
	 * @param component The component to set.
	 *
	 */
	public void setComponent(Component component ){
		this.component = component;
	}


}
